package org.chen.common.dto;


import io.swagger.v3.oas.annotations.media.Schema;

@Schema(description = "用户登录传参")
public class LoginBody {
    
    @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED)
    private String username;
    
    @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED)
    private String password;
    
    @Schema(description = "验证码的唯一标识", requiredMode = Schema.RequiredMode.REQUIRED)
    private String uuid;
    
    @Schema(description = "登录验证码", requiredMode = Schema.RequiredMode.REQUIRED)
    private String code;

    // 无参构造函数
    public LoginBody() {
    }

    // 全参构造函数
    public LoginBody(String username, String password, String uuid, String code) {
        this.username = username;
        this.password = password;
        this.uuid = uuid;
        this.code = code;
    }

    // Getter 和 Setter 方法
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "LoginBody{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", uuid='" + uuid + '\'' +
                ", code='" + code + '\'' +
                '}';
    }
}
